package com.singfan.core.dao.database;

import com.singfan.core.dao.database.model.Barber;

import java.math.BigDecimal;
import java.util.List;

/**
 *
 * Author: hansonghe
 * Date: 2015-08-19 12:12
 * Desc:
 */
public interface IBarberDao {
    void create(Barber barber);

    List<Barber> selectBarbersByShopId(long shopId, int serviceType);

    List<Barber> selectBarberList(List<Long> barberIdList);

    List<Barber> selectBarberList(int serviceType, int listOrderType, int cityId, int businessCircleId, int pageIndex, int pageSize, int position);

    Barber selectBarberById(long barberId);

    void updateCollectCount(long barberId, boolean isCollected);

    void updateComment(long barberId, int commentCount, int favorableCommentCount, int commentScore, int honor);

    List<Barber> searchBarberList(String searchText, int pageIndex, int pageSize);

    boolean isExistPhoneNumber(String phoneNumber);

    void updatePassword(String phoneNumber, String password, String passwordSalt);

    Barber selectBarberByPhone(String phoneNumber);

    void update(Barber barber);

    List<Barber> selectShopBarberList(long shopId, int businessStatusType);

    void updateBarberStatus(long barberId, int businessStatusType);

    void updateShopInfo(long shopId, String masterShopName, String slaveShopName, int cityId, int districtId, int businessCircleId, String address,BigDecimal longitude, BigDecimal latitude);
}